package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.PrizesMapper;
import com.ruoyi.project.system.domain.Prizes;
import com.ruoyi.project.system.service.IPrizesService;

/**
 * 奖品配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-11
 */
@Service
public class PrizesServiceImpl implements IPrizesService 
{
    @Autowired
    private PrizesMapper prizesMapper;

    /**
     * 查询奖品配置
     * 
     * @param id 奖品配置主键
     * @return 奖品配置
     */
    @Override
    public Prizes selectPrizesById(String id)
    {
        return prizesMapper.selectPrizesById(id);
    }

    /**
     * 查询奖品配置列表
     * 
     * @param prizes 奖品配置
     * @return 奖品配置
     */
    @Override
    public List<Prizes> selectPrizesList(Prizes prizes)
    {
        return prizesMapper.selectPrizesList(prizes);
    }

    /**
     * 新增奖品配置
     * 
     * @param prizes 奖品配置
     * @return 结果
     */
    @Override
    public int insertPrizes(Prizes prizes)
    {
        return prizesMapper.insertPrizes(prizes);
    }

    /**
     * 修改奖品配置
     * 
     * @param prizes 奖品配置
     * @return 结果
     */
    @Override
    public int updatePrizes(Prizes prizes)
    {
        return prizesMapper.updatePrizes(prizes);
    }

    /**
     * 批量删除奖品配置
     * 
     * @param ids 需要删除的奖品配置主键
     * @return 结果
     */
    @Override
    public int deletePrizesByIds(String[] ids)
    {
        return prizesMapper.deletePrizesByIds(ids);
    }

    /**
     * 删除奖品配置信息
     * 
     * @param id 奖品配置主键
     * @return 结果
     */
    @Override
    public int deletePrizesById(String id)
    {
        return prizesMapper.deletePrizesById(id);
    }
}
